.PHONY=clean ALL

LDFLAGS+= -s
CFLAGS+=-I ../$(INC) -O2 $(OPENMP)
OBJ_MAIN=main.o
OBJ_FSTRCAT=fstrcat.o
OBJ_FAC=fac.o

EXSAMPLE=../$(PROGRAM_NAME)

ALL:$(EXSAMPLE) 

$(EXSAMPLE):$(OBJ_FSTRCAT) $(OBJ_FAC) $(OBJ_MAIN)
	$(CC) $(OPENMP) -O2 -o $@ $(LDFLAGS) $^


clean:
	$(RM) $(OBJ_MAIN) $(OBJ_FSTRCAT) $(EXSAMPLE)
	$(RM) $(OBJ_MAIN) $(OBJ_FAC)  ALL
	


